

function Photo(number, subNumberOfPhotos, title, alt){
	this.number = number;
	this.subNumberOfPhotos = subNumberOfPhotos;
	this.title = title;
	this.alt = alt;
}

$(function () {

    // Initialize Galleria
    for(i=1; i<= numPhotos; i++){
    	var photo = new Photo(i, 1, "title "+i, "description "+i);
    	photos.push(photo);
		if(i == numPhotos){
			makeGallery();
		}
	}



	

	
});

function makeGallery(){
	for(i=0; i < photos.length; i++){
		$('<a href="img/'+imgName+photos[i].number+'-1.jpg"><img src="img/'+imgName+'small/'+photos[i].number+'-1.jpg" title="'+photos[i].title+'" alt="'+photos[i].alt+'">').appendTo("#content");
	}
	
	Galleria.loadTheme('js/libs/galleria-classic/galleria.classic.js');

	$('#content').galleria({
		width:960,
		height:510,
		lightbox: true,
		showInfo: true,
		_toggleInfo: false
	});
	
}

	

